import {
  getTrainOptions
} from '@/api/ts/train.js'
import {
  listTrainClassify
} from '@/api/ts/record'

export async function processTableTree() {
  let phase = null
  await getTrainOptions().then((res) => {
    const data = res.data || []

    phase = data.phase
  })

  let category = []
  await listTrainClassify().then((res) => {
    const data = res.data || []
    category = data
  })

  return {
    category,
    phase
  }
}
